package com.azt.api.pojo.req;

/**
 * 规则管理类
 * Created by LiQZ on 2017/4/13.
 */
public class LevelRuleReq {

    private Integer id;

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 规则代码
     */
    private String ruleCode;

    /**
     * 1 增加 -1 减少
     */
    private Integer type;

    /**
     * 增加减少数量
     */
    private Integer amount;

    /**
     * 单位，前台显示用
     */
    private String unit;

    /**
     * 限制规则
     * <pre>
     * {
     *      "max_amount_a_day":"", // 每天最大获取数量
     *      "max_count":"", // 最大获取次数
     *      "max_count_a_day":"", // 每天最大获取次数(未实现)
     *      "max_amount":"" // 最大获取数量(未实现)
     * }
     * </pre>
     *
     */
    private String limitRule;

    private Integer maxAmountADay;

    private Integer maxCount;

    /**
     * 是否已移除 1 移除 0 未移除
     */
    private Integer removed;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getRemoved() {
        return removed;
    }

    public void setRemoved(Integer removed) {
        this.removed = removed;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getMaxAmountADay() {
        return maxAmountADay;
    }

    public void setMaxAmountADay(Integer maxAmountADay) {
        this.maxAmountADay = maxAmountADay;
    }

    public Integer getMaxCount() {
        return maxCount;
    }

    public void setMaxCount(Integer maxCount) {
        this.maxCount = maxCount;
    }

    public String getLimitRule() {
        return limitRule;
    }

    public void setLimitRule(String limitRule) {
        this.limitRule = limitRule;
    }
}
